package com.deyuanyun.pic.ctrl.controller.vo;

import com.deyuanyun.pic.ctrl.domain.ExinspAntiSurge;
import com.github.pagehelper.Page;
import org.springframework.validation.Errors;

import java.io.Serializable;
import java.util.List;

/**
 * 视图对象 统一转换 接口
 *
 * @author huanglw
 * @date 2016-9-6
 *
 * History: [修改人][时间][修改描述]
 */
public interface Command<T> extends Serializable {

    T toDomain(Errors errors);

    T toDomain();

    void fromDomain(T domain);

}